package com.yuyou.train.service.api.user.service;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.yuyou.train.service.api.user.entity.UserComment;
import com.yuyou.train.util.bean.Pagination;





@FeignClient(value = "train-user-service")
@RequestMapping(value = "/userCommentAPI")
public interface UserCommentAPI {
	
	@RequestMapping(value = "/insert")
	int insert(UserComment userComment);
	
	@RequestMapping(value = "/update")
	int update(UserComment userComment);
	
	@RequestMapping(value = "/delete")
	int delete(String is);
	
	@RequestMapping(value = "/selectByForeignId")
	UserComment selectByForeignId(@RequestParam("foreignId") String foreignId);
	
	@RequestMapping(value = "/findUserCommentPage")
	Pagination<UserComment> findUserCommentPage(int pageIndex, int pageSize,Map<String, Object> conditions);
	
	@RequestMapping(value = "/findCommAndPraLimit")
	List<UserComment> findUserCommentLimit(String userId,int pageIndex, int pageSize );
	
}
